<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>
<h:inputHidden value="#{listMails.selectedMessage}" />
				
<p:panelGrid style="margin-top:20px">
  		
  		
  		<p:row>  		
  		<h:inputHidden value="#{listMails.asunto}" />
  		<h:inputHidden value="#{listMails.paraRenv}" />
  		<h:inputHidden value="#{listMails.selectedMessage}" />
  		<p:column  style="font-weight: bold;">Asunto:</p:column>  
        <p:column  style="font-weight: bold;"> <p:inputText readonly="true" value="#{listMails.selectedMessage.asunto}"  id="subject"> </p:inputText>  </p:column>
        
  		<p:column  style="font-weight: bold;">Fecha de envío:</p:column>  
        <p:column  style="font-weight: bold;"> <p:inputText readonly="true" value="#{listMails.selectedMessage.fechaEnviado}"  id="fromDate"> <f:convertDateTime type="date" dateStyle="medium" timeZone="GMT+1:00" /></p:inputText>  </p:column>
        
        </p:row>
  		
  		  		
  		<p:row>
  		<p:column colspan="4">
  		 <p:editor  id="editor" value="#{listMails.selectedMessage.cuerpoMensaje}" width="600" height="200"/>  
  		</p:column>
  		</p:row>
  		<p:row>
  		<p:column colspan="4">
  		 	 	<p:separator style="margin-top:20px" />
  		 	 	<p:growl id="messages4"/>
  		 	 	<p:commandButton id="loginButton" value="Responder" update="@all" process="@parent" ajax="true"
										actionListener="#{listMails.resendMail}"
										/>
          	  
		</p:column>
		</p:row>
		</p:panelGrid>			
</ui:composition>

</html>


